package com.example.jpademo.db.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 操作日志表
 */
@Data
@Entity
@Table(name = "bond_log")
public class BondLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "id", nullable = false)
    private String id;

    /**
     * 进程名
     */
    @Column(name = "server_name")
    private String serverName;

    /**
     * 服务名
     */
    @Column(name = "service_name")
    private String serviceName;

    /**
     * 方法名
     */
    @Column(name = "method")
    private String method;

    /**
     * qpid消息id
     */
    @Column(name = "message_id")
    private String messageId;

    /**
     * 操作者id
     */
    @Column(name = "operator_id")
    private String operatorId;

    /**
     * 请求消息
     */
    @Column(name = "request_msg")
    private String requestMsg;

    /**
     * 返回消息
     */
    @Column(name = "reply_msg")
    private String replyMsg;

    /**
     * 消息接收时间
     */
    @Column(name = "receive_msg_time")
    private Date receiveMsgTime;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

}
